Skip to content

Instantly share code, notes, and snippets.

@jboner
jboner / latency.txt
Last active October 11, 2026 19:57
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@kguzek
kguzek / linux-heroic-fitgirl-tutorial.md
Last active October 11, 2026 19:50
An installation guide for installing games from FitGirl Repacks in the Heroic game launcher on Linux.

FitGirl Repacks Installation for Heroic Launcher

Linux Tutorial by Konrad Guzek

  1. Download the repack through your torrent client

  2. Use md5sum to ensure the correct checksums for each bin file. You will need to convert the Windows file paths & comments to Linux equivalents using sed:

    sed 's/^;/#/; s#\.\.\\#./#g' MD5/fitgirl-bins.md5 > MD5/fitgirl-bins-linux.md5

md5sum -c MD5/fitgirl-bins-linux.md5

@ashokallu
ashokallu / idiomatic_go_v2.md
Last active October 11, 2026 19:48
Idiomatic Go Programming Guide 2025+ - Gold Standard Edition

Idiomatic Go Programming Guide 2025+ - Gold Standard Edition

"Go is about making software engineering more effective, not just making programmers more productive." - The Go Team

Target Go Version: Go 1.23+ (examples align with 1.23–1.24 features)


Executive Summary

@DannyMac180
DannyMac180 / cache_gap_check
Created October 10, 2026 17:04
cache_gap_check.py
#!/usr/bin/env python3
"""cache_gap_check.py - READ-ONLY. Is raising subagentPromptCacheTtl 5m -> 1h likely worth it?
Scans Claude Code transcripts (~/.claude/projects/**/*.jsonl) for subagent (sidechain)
requests, measures idle gaps between each subagent's consecutive requests, and estimates
cache cost under the current 5m TTL vs a hypothetical 1h TTL, in multiples of base input
price. Python 3 stdlib only. Never writes files and makes no network calls.
"""
import argparse, json, os, sys
from collections import defaultdict
@ricardocuellar
ricardocuellar / fast_api_installations.md
Last active October 11, 2026 19:36
Instalaciones recomendadas para VSCode - FastAPI

Instalaciones recomendadas - Curso de FastAPI desde cero: crea APIs con Python

Django logo

Generales

  1. Instalar Python
  2. Verificar instalación de Python
    • python3 --version (Para MacOs y Linux)
    • python --version (Para Windows)

Instalar editor de código o IDE. (Elige el que más se acomode a ti)

@k16shikano
k16shikano / SKILL.md
Last active October 11, 2026 19:33
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、翻訳調の比喩と擬人化の禁止(「運ぶ」「効く」「開かれた問い」など)、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。
license Unlicense(https://gist.github.com/k16shikano/67625f2a7d96e3bbdfae8d571a936063)

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

Prompt Engineering

Автор: Lee Boonstra

Благодарности

Содержание предоставили:

  • Michael Sherman
  • Yuan Cao
@furtidev
furtidev / libev.odin
Last active October 11, 2026 19:28
Sample of libev bindings for Odin
package libev
loop :: struct {}
EvNone :: 0x0
EvRead :: 0x1
EvWrite :: 0x2
EvFlagAuto :: 0x00000000
EvFlagNoEnv :: 0x01000000
@luckylittle
luckylittle / RH342.md
Last active October 11, 2026 19:27
Red Hat RH342 Notes

Red Hat Enterprise Linux Diagnostics & Troubleshooting (RH342)

Last update: Fri Jul 26 08:23:20 UTC 2019 by @luckylittle


1. Troubleshooting principles

2. Generic issues